<template>
    <!-- <div> -->
        <!-- <Tree></Tree> -->
        <ul>
            <li v-for='(item,index) in datas' :key="index">
                {{item.label}}
                <Tree v-if="item.children" :datas="item.children"></Tree>
            </li>
        </ul>
    <!-- </div> -->
</template>
<script>
import Tree from './Tree'
export default {
    //递归组件要自己调自己
    name:'Tree',
    components:{Tree,},
    props:['datas']
}
</script>